﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>農夫山泉后台管理系統 </title>
 <link rel="stylesheet" href="layui/css/layui.css">


</head>



<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">農夫山泉后台管理系統</div>
		<ul class="layui-nav layui-layout-left">
			<li class="layui-nav-item"><a href="javascript:;">部门管理</a>
				<dl class="layui-nav-child">
					 <dd><a href="adminType/toAddDepartmentType" target="center">添加部门</a></dd>
					 <dd><a href="adminType/toDeleteDepartmentType" target="center">删除部门</a></dd>					 
				 </dl>
			</li>
				<li class="layui-nav-item"><a href="javascript:;">员工管理</a>
				<dl class="layui-nav-child">
					 <dd><a href="employee" target="center">员工管理</a></dd>
			
				 </dl>
			</li>
			
			<li class="layui-nav-item"><a href="javascript:;">商品管理</a>
				<dl class="layui-nav-child">
					 <dd><a href="adminGoods/toAddGoods" target="center">添加商品</a></dd>
					 <dd><a href="adminGoods/selectGoods?act=deleteSelect" target="center">删除商品</a></dd>
					 <dd><a href="adminGoods/selectGoods?act=updateSelect" target="center">修改商品</a></dd>
					  <dd><a href="adminGoods/toSearchGoods" target="center">查询商品</a></dd>
					
				 </dl>
			</li>
				<li class="layui-nav-item"><a href="javascript:;">类型管理</a>
				<dl class="layui-nav-child">
					 <dd><a href="adminType/toAddType" target="center">添加类型</a> <dd>
					 <dd><a href="adminType/toDeleteType" target="center">删除类型</a> <dd>
				 </dl>
				</li>
			<li class="layui-nav-item"><a href="javascript:;">用户管理</a>
				<dl class="layui-nav-child">
					<dd><a href="adminUser/userInfo" target="center">删除用户</a> <dd>
				 </dl>
			</li>
			<li class="layui-nav-item"><a href="javascript:;">订单管理</a>
				<dl class="layui-nav-child">
					<dd><a href="adminOrder/orderInfo" target="center">删除订单</a> <dd>
				 </dl>
			</li>
			<li class="layui-nav-item"><a href="javascript:;">公告管理</a>
				<dl class="layui-nav-child">
					<dd><a href="adminNotice/toAddNotice" target="center">添加公告</a> <dd>
					<dd><a href="adminNotice/deleteNoticeSelect" target="center">删除公告</a> <dd>
					<dd><a href="adminNotice/deleteNoticeSelect1" target="center">测试公告</a> <dd>
				 </dl>
			</li>
		</ul>
		
		<ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="images/images/nongfushanquan/logo.ae828a1b.png" class="layui-nav-img">
          admin
        </a>
     
      </li>
      <li class="layui-nav-item"><a href="exit">退了</a></li>
    </ul>
  </div>
  
		  <div class="layui-side layui-bg-black">
		    <div class="layui-side-scroll">
		      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
		      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
		        <li class="layui-nav-item layui-nav-itemed">
		          <a  href="javascript:;">所有商品</a>
		        <c:forEach items="${goodsType}" var="goodsType">						
		          <dl class="layui-nav-child">
		            <dd><a href="adminType/selectGoodsByType?id=${goodsType.id }" target="center">${goodsType.typename }</a></dd>		          		      
		          </dl>
		             </c:forEach>
		        </li>
		  
		      </ul>
		    </div>
		  </div>
		  
		  <div class="layui-body">
		    <!-- 内容主体区域 -->
		  
		    	
		<iframe src="adminGoods/selectGoods"  name="center" frameborder="0" style="width: 100%; height: 100%; padding: 15px;"></iframe>
				
	
		  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
     底部固定区域
  </div>
</div>
		
</div>
	
	
	
	
<script src="layui/layui.js"></script>
<script>
//一般直接写在一个js文件中
layui.use('element', function(){
  var element = layui.element;
  

});
</script> 
</body>
</html>


